﻿using com.guojin.core.io.message;
using com.guojin.core.io;
using System.Collections.Generic;
namespace com.guojin.mj.net.message.login
{
    public class HistoryRoomMsg : Message
    {
        public static int TYPE = 7;
        public static int ID = 135;
        public string date;
        public string time;
        public string roomid;
        public string roomAllNumber;
        public string Times;
        public string Difen;
        public string AllShouShu;
        public string ALLDaiRu;
        public string MVP;
        public string TH;
        public string YU;
        public List<Zhuang> ZhuangList;
        public List<IsRoomMsg> RoomMsg;
        public int Who;
        public int score;
        public bool IsCreaet;//false 为 普通房
        public string HMVP;
        public string HTH;
        public string HDY;
        public void decode(core.io.Input _in)
        {
            date = _in.readString();
            time = _in.readString();
            roomid = _in.readString();
            roomAllNumber = _in.readString();
            Times = _in.readString();
            Difen = _in.readString();
            AllShouShu = _in.readString();
            ALLDaiRu = _in.readString();
            MVP = _in.readString();
            TH = _in.readString();
            YU = _in.readString();
            int size = _in.readInt();
            if (size>0)
            {
                ZhuangList = new List<login.Zhuang>() ;
                for (int i = 0; i < size; i++)
                {
                    Zhuang z = new login.Zhuang();
                    z.decode(_in);
                    ZhuangList.Add(z);
                }
            }
            int sizes = _in.readInt();
            if (sizes > 0)
            {
                RoomMsg = new List<login.IsRoomMsg>();
                for (int i = 0; i < sizes; i++)
                {
                    IsRoomMsg zr = new login.IsRoomMsg();
                    zr.decode(_in);
                    RoomMsg.Add(zr);
                }
            }
            Who = _in.readInt();
            score = _in.readInt();
            IsCreaet = _in.readBoolean();
            HMVP = _in.readString();
            HTH = _in.readString();
            HDY = _in.readString();
        }

        public void encode(Output _out)
        {

        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "";
        }
    }
}
